import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;

/**
 * 读取文件示例
 */
public class RosterReader {

    public static void main(String[] args) throws IOException {
        String filename = "src/main/resources/2020.34.csv";

        File file = new File(filename);
        System.out.println("filename = " + filename);
        System.out.println("file.getCanonicalPath() = " + file.getCanonicalPath());
        System.out.println("file.exists() = " + file.exists());

        System.out.println("new File(\".\").getCanonicalPath() = " + new File(".").getCanonicalPath());
        System.out.println("汉字china");
        System.out.println("Charset.defaultCharset() = " + Charset.defaultCharset());
    }
}
